define(function(require,exports,module){
	'use strict';
	
	var React = require('react');
	
	module.exports = React.createClass({displayName: "exports",
		handleSubmit:function(e){
			e.preventDefault();
			var keys = React.findDOMNode(this.refs.keys).value.trim();
			this.props.searchHandle(keys);
		},
		render:function(){
			return (
                React.createElement("form", {onSubmit: this.handleSubmit}, 
					React.createElement("div", {clssName: "row"}, 
						React.createElement("div", {className: "col-md-3"}, 
							React.createElement("input", {type: "text", className: "form-control input", ref: "keys", placeholder: "关键字搜索用户名、邮箱"})
						), 
						React.createElement("div", {className: "col-md-2"}, 
							React.createElement("input", {type: "submit", className: "btn btn-default btn-block", value: "搜索"})
						)
					)
                )
			);
		}
	});
});